{{define "Title"}}选择工单{{end}}
{{define "Content"}}

<div class="container-fluid">
<form class="form-horizontal" action="/scanflow" method="POST">
  <fieldset>
    <legend><b>选择工单</b></legend>
    {{if .error}}<div class="alert alert-error"><b>错误: </b>{{.error | html}}</div>
    {{end}}
    <div class="control-group">
      <label class="control-label">站点&nbsp;</label>
      <div class="control">
        <label class="control-label" for="station" id="station" name="station" style="font-weight: bold; text-align:left; padding-left:10px; width:auto;">{{.station | html}}</label>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">线别&nbsp;</label>
      <div class="control">
        <label class="control-label" for="line" id="line" name="line" style="font-weight: bold; text-align:left; padding-left:10px;">{{.line | html}}</label>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">工单&nbsp;</label>
      <div class="control">
        <select id="wono" name="wono" style="background-color: #FFFFD0;">
          <option value="">
          {{range .wonos}}
            <option value="{{.Wono | html}}">{{.Wono | html}}
          {{end}}
        </select> <b style="color: red">*</b>
      </div>
    </div>
    <div class="form-actions">
      <button type="submit" class="btn btn-primary">选择</button>
    </div>
  </fieldset>
</form>
</div>
  
{{end}}